package com.itheima.mapper;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {

    Set<Permission> findByRoleIds(@Param("ids") List<Integer> ids);

    List<Permission> findPage(@Param("queryString") String queryString);

    void add(Permission permission);

    Permission findPermissionById(@Param("id") Integer id);

    Integer edit(Permission permission);

    Integer findRoleAndPermissionById(@Param("id") Integer id);

    void delete(@Param("id") Integer id);

    List<Permission> findAll();
}
